home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / TANIS002.422 < prev    next >
Text File  |  1993-03-09  |  3KB  |  60 lines

  1. 0Tanis002.Mod. update, this now handles Gated subs
  2. Pull #783 @17310
  3. Sunday, March 7, 1993   7:57 pm
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name:    :  TANIS002.MOD        Author :  Tanis Half-Elven 1@17315     │
  6. │ Difficulty   :  Easy                Date   :  2/26/93                      │
  7. │ Files Modded :  MSGBASE1.C          WWIV Version :  4.22                   │
  8. │ Description  :  A cool message prompt, with sub name and Net the sub is in.│
  9. └────────────────────────────────────────────────────────────────────────────┘
  10.  
  11.   I first got thsi idea from IQ1. He had the main prompt contain the Net Name
  12. the current sub was in. Well i hate the plain old Read promt for the messages
  13. so i whipped this up using part of IQ1's mod. This is a simple mod, moslty
  14. coemstic but hey, aren't all mods?
  15.   Anyway, with out further delay, on with the mod.
  16.  
  17. Step 1: Back up your source, because i am not responsible for anything that
  18.     happens to you or your computer.
  19.  
  20. Step 2: Load Msgbase1.C
  21.  
  22. Step 3: Search for : void scan(int msgnum, int optype, int *nextsub)
  23.  
  24. Step 4: Make it look like this. Note : The A's and B's are extra colors.
  25.     change them to what you want.
  26.  
  27. void scan(int msgnum, int optype, int *nextsub)
  28. {
  29.   char s[81],s1[81],s2[81],*b,*ss1,*ss2;       /* add the *ss2 */
  30.   int i,i1,i2,done,quit,abort,next,val,realexpress;
  31.   slrec ss;
  32.  
  33. Then go down a little farther to case 0:
  34.  
  35.                       /* Delete the stuff under case 0: */
  36.       case 0: /* Read Prompt */       /* up to if (express) {, and add: */
  37.        nl();
  38.        if (xsubs[usub[cursub].subnum].num_nets) {
  39.       if (xsubs[usub[cursub].subnum].num_nets>1)   
  40.         ss2="Gated";                                
  41.       else                                        
  42.         ss2=net_networks[xsubs[usub[cursub].subnum].nets[0].net_num].name;
  43.       npr("7[A%s 7: B%s7]0\r\n",ss2,subboards[usub[cursub].subnum].name);
  44.       sprintf(s,"7[A%s 7: 11-%u7,1^%u7] :0 ",get_string(678), nummsgs,msgnum);
  45.     } else {
  46.       npr("7[ALocal 7: B%s7]0\r\n",subboards[usub[cursub].subnum].name);
  47.       sprintf(s,"7[A%s 7: 11-%u7,1^%u7] :0 ",get_string(678), nummsgs,msgnum);
  48.     }
  49.     if (express) {         /* stop here */
  50.  
  51. Step 5: Change the Colors to what you want.
  52.  
  53. Step 6: Save Msgbase1.C.
  54.  
  55.   That's it! Simple huh? Well remember that good things come in small
  56. packages. If you have any questions, comments or problems with this mod, I
  57. can be reached at 1@17315 or via the WWIVLink Mod Discussion sub. Cya.
  58.                    7Tanis
  59.                    5The Half-Elven
  60.